﻿/*------------------------------------------------
// File Description: QLevel DataBase Entity
// Author:			 Crane
// Create Time:		 2020-07-02 10:32:47
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 等级
    /// </summary>
    [Table(nameof(QLevel))]
    public class QLevel : BaseEntity
    {
        private string _level = string.Empty;
        private string _erpLevel = string.Empty;

        #region Public Property

        ///<Summary>
        /// 等级
        ///</Summary>
        public string Level
        {
            get { return string.IsNullOrWhiteSpace(_level) ? string.Empty : _level; }
            set { _level = value; }
        }

        ///<Summary>
        /// ERP中的等级
        ///</Summary>
        public string ErpLevel
        {
            get { return string.IsNullOrWhiteSpace(_erpLevel) ? string.Empty : _erpLevel; }
            set { _erpLevel = value; }
        }

        ///<Summary>
        /// 排序
        ///</Summary>
        public int SortNo { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 等级
        /// </summary>
        public virtual DbSet<QLevel> QLevels { get; set; }
    }
}